package com.booktrade.service;

import com.booktrade.entity.Messages;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 私信表，存储用户之间的消息 服务类
 * </p>
 */
public interface IMessagesService extends IService<Messages> {

    void sendMessage(Integer senderId, Integer receiverId, String content);

    List<Messages> getMessagesWithContact(Integer userId, Integer contactId);

    List<Integer> getAllContacts(Integer userId);
}
